package org.imis.service;

import java.io.Serializable;
import java.util.List;

import org.hibernate.HibernateException;
import org.imis.domain.News;


public interface NewsManage<T> {
	public String saveNews(T news);
    public List<News> findAllNews(Class<T> entityClazz);
    public Object findOneList(String table,int id) throws HibernateException, ClassNotFoundException;
    public void saveAlter(T news);
    public List<T> findNewsByPage(String hql ,int pageNo,int pageSize,int max);
    public void deleteByid(Class<T> entityClazz,Serializable id);
    public long findNewsCount(Class<T> entityClazz);
}
